package cn.aeolia.Callatz;

/**
 * @author： Aeolia
 * @Description： TODO
 * @Date： 2021/9/10 23:19
 */
public class Main2 {
    public static void main(String[] args) {
        long startTime;
        long overTime;
        startTime=System.currentTimeMillis();
        for (int j = 0; j < 100000; j++) {
            int i = j;
            int count = 0;
            while (i != 1 && i != 0) {
                switch (i % 2) {
                    case 1:
                        i = (3 * i + 1) / 2;
                        break;
                    case 0:
                        i = i / 2;
                        break;
                }
                count++;
            }
            System.out.println(count);
        }
        overTime=System.currentTimeMillis();
        System.out.println("总耗时："+(overTime-startTime)+"ms");
    }
}
